package com.weiyin.examination.module;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * <pre>
 *     e-mail : niejunfeng@win-electr.com
 *     time   : 2018/06/06
 *     desc   :
 *     version: 1.0.0
 *     Copyright: Copyright（c）2017
 *     Company:上海蔚音电子科技有限公司
 * </pre>
 *
 * @author niejunfeng
 */
public class UserModule implements Parcelable {
    /**
     * 准考证号
     */
    private String number;
    /**
     * 姓名
     */
    private String name;
    /**
     * 姓名拼音
     */
    private String namePinyin;
    /**
     * 性别
     */
    private String sex;
    /**
     * 出生日期
     */
    private String birth;
    /**
     * 国家
     */
    private String country;
    /**
     * 名族
     */
    private String nation;
    /**
     * 科目
     */
    private String subject;
    /**
     * 试卷类型
     */
    private String paperType;
    /**
     * 级别
     */
    private String level;
    /**
     * 考场编号
     */
    private String centreNo;
    /**
     * 头像url
     */
    private String picUrl;
    /**
     * 考试码
     */
    private String testCode;

    protected UserModule(Parcel in) {
        number = in.readString();
        name = in.readString();
        namePinyin = in.readString();
        sex = in.readString();
        birth = in.readString();
        country = in.readString();
        nation = in.readString();
        subject = in.readString();
        paperType = in.readString();
        level = in.readString();
        centreNo = in.readString();
        picUrl = in.readString();
        testCode = in.readString();
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNamePinyin() {
        return namePinyin;
    }

    public void setNamePinyin(String namePinyin) {
        this.namePinyin = namePinyin;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getPaperType() {
        return paperType;
    }

    public void setPaperType(String paperType) {
        this.paperType = paperType;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getCentreNo() {
        return centreNo;
    }

    public void setCentreNo(String centreNo) {
        this.centreNo = centreNo;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getTestCode() {
        return testCode;
    }

    public void setTestCode(String testCode) {
        this.testCode = testCode;
    }

    public static final Creator<UserModule> CREATOR = new Creator<UserModule>() {
        @Override
        public UserModule createFromParcel(Parcel in) {
            return new UserModule(in);
        }

        @Override
        public UserModule[] newArray(int size) {
            return new UserModule[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(number);
        parcel.writeString(name);
        parcel.writeString(namePinyin);
        parcel.writeString(sex);
        parcel.writeString(birth);
        parcel.writeString(country);
        parcel.writeString(nation);
        parcel.writeString(subject);
        parcel.writeString(paperType);
        parcel.writeString(level);
        parcel.writeString(centreNo);
        parcel.writeString(picUrl);
        parcel.writeString(testCode);
    }
}
